<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <title>客服咨询</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html, body {
            height: 100%;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            overflow-x: hidden;
        }
        
        .container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            position: relative;
        }
        
        .welcome-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px 30px;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            width: 100%;
            transform: translateY(-20px);
        }
        
        .logo {
            font-size: 2.5rem;
            font-weight: bold;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
        }
        
        .subtitle {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.5;
        }
        
        .chat-info {
            background: #f8f9ff;
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            border-left: 4px solid #667eea;
        }
        
        .chat-info h3 {
            color: #333;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }
        
        .chat-info p {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.6;
        }
        
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .feature {
            background: #fff;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .feature-icon {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }
        
        .feature-text {
            font-size: 0.8rem;
            color: #666;
        }
        
        /* 聊天插件样式优化 */
        #salesmartly-chat-container {
            z-index: 9999 !important;
        }
        
        /* 移动端优化 */
        @media (max-width: 768px) {
            .container {
                padding: 15px;
                justify-content: flex-start;
                padding-top: 10vh;
            }
            
            .welcome-card {
                padding: 25px 20px;
                transform: translateY(0);
                margin-bottom: 80px; /* 为聊天按钮留出空间 */
            }
            
            .logo {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .features {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .feature {
                padding: 12px;
            }
            
            /* 聊天按钮移动端优化 */
            .salesmartly-chat-button {
                bottom: 20px !important;
                right: 20px !important;
                width: 56px !important;
                height: 56px !important;
            }
        }
        
        @media (max-width: 480px) {
            .welcome-card {
                padding: 20px 15px;
                border-radius: 15px;
            }
            
            .logo {
                font-size: 1.8rem;
            }
            
            .chat-info {
                padding: 15px;
            }
            
            .features {
                gap: 8px;
            }
            
            .feature {
                padding: 10px;
            }
        }
        
        /* 确保聊天窗口在移动端正确显示 */
        @media (max-width: 768px) {
            .salesmartly-chat-frame {
                width: 100% !important;
                height: 100% !important;
                max-width: none !important;
                max-height: none !important;
                border-radius: 0 !important;
                bottom: 0 !important;
                right: 0 !important;
                left: 0 !important;
                top: 0 !important;
            }
        }
        
        /* 加载动画 */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="welcome-card">
            <div class="subtitle">智能客服系统<br>随时为您提供帮助</div>
            
            <div class="chat-info">
                <h3>💬 在线客服</h3>
                <p>我们的客服团队24小时在线，点击右下角聊天图标即可开始对话</p>
            </div>
            
            <div class="features">
                <div class="feature">
                    <div class="feature-icon">⚡</div>
                    <div class="feature-text">快速响应</div>
                </div>
                <div class="feature">
                    <div class="feature-icon">🛡️</div>
                    <div class="feature-text">安全可靠</div>
                </div>
                <div class="feature">
                    <div class="feature-icon">📱</div>
                    <div class="feature-text">移动优先</div>
                </div>
                <div class="feature">
                    <div class="feature-icon">🎯</div>
                    <div class="feature-text">精准服务</div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 聊天客服插件 -->
    <script>
        // 确保插件正确加载
        window.addEventListener('load', function() {
            // 添加移动端聊天按钮的额外样式
            const addMobileStyles = () => {
                const style = document.createElement('style');
                style.textContent = `
                    /* 移动端聊天按钮优化 */
                    @media (max-width: 768px) {
                        [id*="salesmartly"] .chat-widget-button {
                            bottom: 20px !important;
                            right: 20px !important;
                            width: 56px !important;
                            height: 56px !important;
                            border-radius: 50% !important;
                            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
                        }
                        
                        [id*="salesmartly"] .chat-widget-iframe {
                            bottom: 0 !important;
                            right: 0 !important;
                            left: 0 !important;
                            top: 0 !important;
                            width: 100% !important;
                            height: 100% !important;
                            max-width: none !important;
                            max-height: none !important;
                            border-radius: 0 !important;
                        }
                    }
                `;
                document.head.appendChild(style);
            };
            
            // 延迟添加样式，确保插件已加载
            setTimeout(addMobileStyles, 1000);
        });
    </script>
    <script src="https://plugin-code.salesmartly.com/js/project_414996_426761_1754400071.js"></script>
</body>
</html>